<?php

 $link = mysqli_connect('localhost', 'root', 'root', 'FF14');
 
 $sql = "SELECT `价格` FROM `goods` GROUP BY `价格`";
 $res = mysqli_query($link, $sql);

 $data = mysqli_fetch_all($res, MYSQLI_ASSOC);

 $arr = array(
     "message" => "获取成功",
     "code" => 1,
     "list" => $data
 );

 echo json_encode($arr);

?>